package com.lemeng.factory;

import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestHighLevelClient;

public class RestHighLeveClientFactory {
    public static RestHighLevelClient getInstance(String host,Integer port){

     return  new RestHighLevelClient(RestClient.builder(new HttpHost(host,port,"http")));
    }
}
